package com.li.onjava8.concurrent.cf.example.pizza;

import com.li.onjava8.concurrent.utils.Timer;

public class OnePizza {
    public static void main(String[] args) {
        Timer timer = new Timer();
        Pizza pizza = new Pizza(0);
        while (!pizza.complete()) {
            pizza.next();
        }
        System.out.println(timer.duration());
    }
}
